package com.hanqian.kepler.core.dao.primary.core;

import com.hanqian.kepler.common.bean.NameValueVo;
import com.hanqian.kepler.core.entity.primary.core.TargetDesc;
import com.hanqian.kepler.flow.base.dao.BaseFlowDao;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * newFile
 * ============================================================================
 * author : dzw
 * createDate:  2020/12/24 。
 * ============================================================================
 */
public interface TargetDescDao extends BaseFlowDao<TargetDesc> {

//	/**
//	 * 一个指标卡片下获取存在的指标定义
//	 */
//	@Query(value = "SELECT DISTINCT targetDescDict_id as \"value\",d.name as \"name\" FROM kepler_target_desc td,sys_dict d where td.targetDescDict_id=d.id and td.state='Enable' and td.target_id=:targetId", nativeQuery = true)
//	List<NameValueVo> findTargetDescDictList(@Param("targetId") String targetId);

}
